package com.han.hotelplat.comm.utils.dbutils;

import com.alibaba.druid.filter.config.ConfigFilter;
import com.alibaba.druid.pool.DruidDataSource;

/**
 * DbPoTools
 *
 * @author han
 * @version 1.0 - 2016-05-31
 */
public class DbPoTools {

	public static void main(String[] args) throws Exception {
		DruidDataSource datasource = new DruidDataSource();
		datasource.setFilters("config");
		datasource.addConnectionProperty(ConfigFilter.CONFIG_FILE, "src/com/han/hotelplat/comm/utils/dbutils/conf/datasource.properties");
		datasource.init();

		PoPrinter.print(datasource
				, "E:/beiang/db"
				, "com.han.ctroomtype.pojo");

	}
}


